package com.example.tao_city.text1;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * Created by TAO_CITY on 2018/1/12.
 */

public class Fm1_Recharge extends AppCompatActivity implements View.OnClickListener{
    private ImageView back;
    private LinearLayout nfc,lanya,budeng,shouhuan,tuikuan;

    @Override
    protected void onCreate(Bundle save){
        super.onCreate(save);
        setContentView(R.layout.fm1_recharge);
        initbutton();
    }
    private void initbutton(){
        back=findViewById(R.id.fm1_recharge_back);
        nfc=findViewById(R.id.recharge_nfc);
        lanya=findViewById(R.id.recharge_lanya);
        budeng=findViewById(R.id.recharge_budeng);
        shouhuan=findViewById(R.id.recharge_shouhuan);
        tuikuan=findViewById(R.id.recharge_tuikuan);

        back.setOnClickListener(this);
        nfc.setOnClickListener(this);
        lanya.setOnClickListener(this);
        budeng.setOnClickListener(this);
        shouhuan.setOnClickListener(this);
        tuikuan.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.fm1_recharge_back:
                finish();
                break;
            case R.id.recharge_nfc:
                Intent in=new Intent();
                in.setClass(Fm1_Recharge.this, Recharge_nfc.class);
                startActivity(in);
                break;
            case R.id.recharge_budeng:
                Intent in1=new Intent();
                in1.setClass(Fm1_Recharge.this,Recharge_budeng.class);
                startActivity(in1);
                break;
        }

    }
}


